package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.Problem;
import com.zcxy360.sandtable.domain.ProblemExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProblemMapper {
	
//	
	Problem selectByPrimaryKeyWithExtra(Integer problemId);
	List<Problem> listWithExtra(@Param("problem") Problem problem, @Param("key") String key, @Param("orderByClause") String orderByClause, @Param("sign") Integer sign);
	int deleteBatch(int[] problemIds);
//
	
    long countByExample(ProblemExample example);

    int deleteByExample(ProblemExample example);

    int deleteByPrimaryKey(Integer problemId);

    int insert(Problem record);

    int insertSelective(Problem record);

    List<Problem> selectByExample(ProblemExample example);

    Problem selectByPrimaryKey(Integer problemId);

    int updateByExampleSelective(@Param("record") Problem record, @Param("example") ProblemExample example);

    int updateByExample(@Param("record") Problem record, @Param("example") ProblemExample example);

    int updateByPrimaryKeySelective(Problem record);

    int updateByPrimaryKey(Problem record);

}